home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- REM FILEBYTE.BAT - Pass a file specification and this batch
- REM file will tell you how many bytes it occupies.
- SET filebytes=0
- IF '%1'=='' GOTO Report
- IF NOT EXIST %1 GOTO Report
- DIR %1 | FIND "file(s)" | INP CALL $FILEBYT.BAT>NUL
- ECHO SET filebytes=%%3>$FILEBYT.BAT
- CALL TEMP.BAT
- DEL TEMP.BAT
- DEL $FILEBYT.BAT
- :===== Report =====
- ECHO %filebytes% bytes occupied by "%1"